package com.dmlll.service;

import com.dmlll.VO.*;
import com.dmlll.domain.DrugMessage;
import com.dmlll.domain.Provider;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dmLll
 * @since 2021-04-02
 */
public interface ProviderService extends IService<Provider> {
    //模糊查
    PageInfo<DeliverGoodsVO> findAll(Integer pageNum, Integer pageSize, DeliverGoodDTO deliverGoodDTO,Integer id);
    //勾选导出
    List<DeliverGoodsVO> findByIdList(Integer[] idList);
    //发货
    int deleteByinList(Integer[] idList);
    //无法供货
    int deleteWuinList(Integer[] idList);
    //导入发货
    int deletdaoru(DeliverGoodsVO deliverGoodsVO);

    //取消供货页面查询
    PageInfo<DrugMessageVOgcl> findguanli(Integer pageNum, Integer pageSize, DrugMessageDTOgcl drugMessageDTOgcl,Integer id);
    //取消供货
    int deleteGongidList(Integer[] idList);
    //确认供货页面查询
    PageInfo<DrugMessageVOgcl> findyao(Integer pageNum, Integer pageSize, DrugMessageDTOgcl drugMessageDTOgcl,Integer id);
    //确认供货
    int insertQueren(@Param("idList") List<Integer[]> idList);
    //供货商商品维护页面查询
    PageInfo<Drug_maintenanceVOgcl> findmaintain(Integer pageNum, Integer pageSize, DrugmaintenanceDTOgcl drugmaintenanceDTOgcl);
    //供货商商品维护页面查询导出
    List<Drug_maintenanceVOgcl> findAllExcel();
    //供货商商品维护页面修改反显
    List<DrugMessage> findAllxiu(Integer id);
    //查询所有供应商的名字
    List<Provider> findgongName();
    //修改
    int updateXiugai(DrugMessage drugMessage);
    //查询药品的详细信息
    List<ParticularVOgcl> findXiangxi(Integer id);

    //供货商审核
    PageInfo<Drug_maintenanceVOgcl> findGongshen(Integer pageNum, Integer pageSize, DrugmaintenanceDTOgcl drugmaintenanceDTOgcl);
    //允许上架
    int insertGongtong(Integer[] idList);
    //药品品目维护查询
    PageInfo<DrugMessageVOgcl> findweihuyao(Integer pageNum, Integer pageSize, DrugMessageDTOgcl drugMessageDTOgcl);
    //修改
    int updateGuanxiu(DrugMessageVOgcl drugMessageVOgcl);
    //删除药品
    int deleteDrugidList(Integer id);
    //单条添加
    int insettian(DrugMessage drugMessage);
    //药品品目导出
    List<DrugMessageVOgcl> findBydrug(Integer[] idList);
    //根据药品类别名查询出药品id
    int category(String category);

}



